<script setup lang="ts">
import { ref } from "vue";
import { useRoute } from "vue-router";
import Tools from "@likg/tools";
import { api } from "@/api/apiServer";
const env = Tools.getEnv();

const route = useRoute();

interface NoticeType {
  dictLabel: string;
  remark: string;
}

// 获取公告详情
const noticeDetail = ref<NoticeType>({
  dictLabel: "",
  remark: "",
});
const getNoticeDetail = async () => {
  const res = await api.getUserAgreement({
    dictCode: 29
  });
  if (res.code === 200) {
    noticeDetail.value = res.data;
  }
};
getNoticeDetail();
</script>
<template>
  <div class="page px-12 bg-FFFFFF">
    <app-header v-if="env !== 'weixin'" title="通知公告" :showBack="true" :show-status-bar="false" />
    <div class="f14 mt-20 lh-23" style="color: #262626" v-html="noticeDetail.remark">
    </div>
  </div>
</template>
<style lang="less">
</style>
